# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=yelp-xsl
pkgver=42.0
pkgrel=0
pkgdesc="XSL stylesheets for the yelp help browser"
url="https://wiki.gnome.org/Apps/Yelp"
arch="noarch"
license="GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT"
makedepends="intltool libxslt itstool"
options="!check" # no tests
source="https://download.gnome.org/sources/yelp-xsl/${pkgver%.*}/yelp-xsl-$pkgver.tar.xz"

prepare() {
	default_prepare
	sed 's|/usr/bin/sh|/bin/sh|' -i install-sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/usr/lib
	mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib
}

sha512sums="
70d86bedd00fd38ffefb82962b591b710aa6ba59f9a12c968d5c47afeed9f4afecfb5e1228fbaba3acab5d5673cb6511d3d51674f7602f5001835d9c134fedda  yelp-xsl-42.0.tar.xz
"
